bitkeeper revision 1.303 (3f0ad1a61FnuXVGdcIqVKvhMgep_6w)
authorsos22@labyrinth.cl.cam.ac.uk <sos22@labyrinth.cl.cam.ac.uk>
Tue, 8 Jul 2003 14:13:58 +0000 (14:13 +0000)
committersos22@labyrinth.cl.cam.ac.uk <sos22@labyrinth.cl.cam.ac.uk>
Tue, 8 Jul 2003 14:13:58 +0000 (14:13 +0000)
Get rid of the max_aces stuff -- the size of the outgoing
buffer is fixed anyway, so there's very little point.

xen/drivers/block/xen_physdisk.c

index cef06ea2a80e40bc45ff23cbb30205c536e59365..e7e0bf73b46b772ad5877b8e16b8c206b1d38a7b 100644 (file)
@@ -149,13 +149,11 @@ static int xen_physdisk_grant_access(unsigned short dev,
 static void xen_physdisk_probe_access(physdisk_probebuf_t * buf,
                                      struct task_struct *p)
 {
-    int max_aces;
     int n_aces;
     struct list_head *cur_ace_head;
     struct physdisk_ace *cur_ace;
     int x = 0;
 
-    max_aces = buf->n_aces;
     n_aces = 0;
     list_for_each(cur_ace_head, &p->physdisk_aces) {
        x++;
@@ -167,8 +165,6 @@ static void xen_physdisk_probe_access(physdisk_probebuf_t * buf,
            buf->entries[n_aces].n_sectors = cur_ace->n_sectors;
            buf->entries[n_aces].mode = cur_ace->mode;
            n_aces++;
-           if (n_aces >= max_aces)
-               break;
        }
     }
     buf->n_aces = n_aces;